import fs from "fs";
import path from "path";


fs.promises.access(path.resolve("src/0020_文件/data.txt"))
    .then(() => {
        console.log('文件存在');
    }).catch((err) => {
        console.log(err);
        console.log('文件不存在');
    })
